package com.zbxx.service.impl;

import com.zbxx.dao.ProductDao;
import com.zbxx.domain.Product;
import com.zbxx.service.ProductService;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
@Transactional
public class ProductServiceImpl implements ProductService {

    //注入dao
    @Resource
    private ProductDao productDao;

    public ProductDao getProductDao() {
        return productDao;
    }

    public void setProductDao(ProductDao productDao) {
        this.productDao = productDao;
    }

    @Override
    public void save(Product product) {
        productDao.save(product);

    }

}
